package com.gitee.dupe.config;

import com.gitee.dupe.common.properties.StaticProperties;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author LYH
 */
@Component
public class DupeApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) {
        StaticProperties.appStartTime = LocalDateTime.now();
    }
}
